package com.yzf.wisecoder.wisecoderstorage.mysql.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author jianghuiyong
 * @email jianghuiyong@yunzhangfang.com
 * @date 2020-05-12 10:20:48
 */
@Data
@TableName("wise_view_db")
@Accessors(chain = true)
public class ViewDbEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long dbId;
    /**
     * 数据源名称
     */
    private String dbName;
    /**
     * 数据源URL
     */
    private String dbUrl;
    /**
     * 数据源用户
     */
    private String dbUsername;
    /**
     * 数据源密码
     */
    private String dbPassword;
    /**
     * 数据源类型
     */
    private String dbType;
    /**
     * 项目ID
     */
    private Long projectId;
    /**
     * 删除状态 0:未删除 1:已删除
     */
    @TableLogic
    private Boolean deleted;
    /**
     * 创建人
     */
    private Long creator;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}
